#! /usr/bin/python

# Command-line interface to fetch_pectin
import fetch_pectin;
import sys;

def help():
	print "Welcome to MakeMePectin version 1.0"
	print "(C) Jonathan Hunt <jjh@42quarks.com>"
	print "This utilises the brilliance of Sweet II (http://www.dkfz-heidelberg.de/spec/sweet2/) to generate pectin structures"
	print "from a command line sequence of G/E's and saves it as a pdb file in the current working directory."

def main():
	args = sys.argv;

	if(len(args) != 2 or sys.argv[1] == '--help'):
		help();
		sys.exit(1);


	pf = fetch_pectin.PectinFetcher();
	pf.fetch_pectin_seq(sys.argv[1]);



if __name__=='__main__':
	main();